﻿using System.ComponentModel.DataAnnotations;
using Forest.Lion.Domain.Contracts;
using System;

namespace Forest.Lion.Web.Models.Auth {
    public class RegisterFormModel : IRegisterFormModel {
        public Guid Id { get; set; }
        [Required(ErrorMessage = "公司名称必须")]
        [StringLength(50, ErrorMessage = "公司长度不超过50个字符")]
        public string CompanyName { get; set; }

        [Required(ErrorMessage = "联系人必须")]
        [Display(Name = "联系人", Prompt = "Please Input Contact")]
        public string Contact { get; set; }

        [Display(Name = "联系电话", Prompt = "Please Input Contact")]
        public string Tel { get; set; }
        public string Mobile { get; set; }

        [Required(ErrorMessage = "用户名必须")]
        public string UserName { get; set; }

        [Required(ErrorMessage = "密码必须")]
        public string Password { get; set; }

        [Required(ErrorMessage = "确认密码必须")]
        public string RePassword { get; set; }
    }
}